
{[foreach item=aa from=$initem]}
<fieldset><legend>{[$aa.title]}</legend>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
	<tr align="center">
		<th>序号</th>
		<th>流水号</th>
		<th>产品</th>
		<th>事由</th>
		
		<th>币种</th>
		<th>应收</th>
				
		<th>开票日期</th>
		<th>到帐日期</th>
		<th>状态</th>
	</tr>
	{[assign var="t1" value="0"]}
	{[foreach name=outer key=key item=item from=$aa.data]}	
	{[assign var="no" value="`$key+1`"]}
	{[assign var="t1" value="`$t1+$item.total`"]}
	<tr align="center">
		<td>{[$no]}</td>
		<td>{[$item.id]}</td>
		<td>{[$item.in_x.mold_t]}</td>		
		<td>{[$item.in_x.name]}{[$item.name|truncate:21:"...":true]}</td>
		<td>{[$item.currency_t]}</td>
		<td>{[$item.total|money]}</td>		
		<td>{[$item.date1]}</td>
		<td>{[$item.date]}</td>
		<td>{[$item.status_t]}</td>
	</tr>
	{[/foreach]}
	<tr>
		<td colspan="5"></td>
		<td align="center">{[$t1|money]}</td>
		<td colspan="3"></td>
	</tr>
</table>
</fieldset>
{[/foreach]}